home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / misc / emu / APCNames12a.lha / APCNames / Sources.Unix / APCNames.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-07  |  1.4 KB  |  45 lines

  1. /* APCNames.h */
  2.  
  3. #ifndef _APCNAMES_H
  4. #define _APCNAMES_H
  5.  
  6. #ifdef AMIGA
  7. #include <exec/types.h>
  8. #else
  9. #ifndef FALSE
  10. #define FALSE 0
  11. #define TRUE  1
  12. #endif
  13. #ifndef NULL
  14. #define NULL 0L
  15. #endif
  16. typedef          int  BOOL;
  17. typedef unsigned long ULONG;
  18. typedef          long LONG;          
  19. typedef unsigned char UBYTE;
  20. #endif
  21.  
  22. /*-------------------------------------------------------------------
  23. **  The Macintosh Finder uses 4-byte IDs for the identification of 
  24. **  the file type and of the application which created the document.
  25. **  Some frequently used IDs are specified here.
  26. **-------------------------------------------------------------------
  27. */
  28.  
  29. #define MAKE_ID(C1,C2,C3,C4) ((C1<<24)|(C2<<16)|(C3<<8)|C4)
  30.  
  31. #define TYPE_TEXT  MAKE_ID('T','E','X','T')        /*(styled) text*/
  32. #define TYPE_WDBN  MAKE_ID('W','D','B','N')        /*MS Word document*/
  33. #define TYPE_PNTG  MAKE_ID('P','N','T','G')        /*painting*/
  34.  
  35. #define CREATOR_UNKNOWN  MAKE_ID('?','?','?','?')
  36. #define CREATOR_TTXT     MAKE_ID('t','t','x','t')  /*TeachText*/
  37. #define CREATOR_MPNT     MAKE_ID('M','P','N','T')  /*MacPaint*/
  38. #define CREATOR_WORD     MAKE_ID('M','S','W','D')  /*MS Word*/
  39. #define CREATOR_BBEDIT   MAKE_ID('R','*','c','h')  /*BBEdit*/
  40. #define CREATOR_THINK_P  MAKE_ID('P','J','M','M')  /*THINK Pascal*/
  41. #define CREATOR_THINK_C  MAKE_ID('K','A','H','L')  /*THINK C, Symantec C++*/
  42.  
  43.  
  44. #endif /*_APCNAMES_H*/
  45.